package info.motteke.mybws.poi;


import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public enum WorkBookType implements WorkbookFactory {
    XLS() {

        /* (非 Javadoc)
         * @see info.motteke.mybws.poi.WorkbookFactory#create()
         */
        @Override
        public Workbook create() {
            return new HSSFWorkbook();
        }
    },
    XLSX() {

        /* (非 Javadoc)
         * @see info.motteke.mybws.poi.WorkbookFactory#create()
         */
        @Override
        public Workbook create() {
            return new XSSFWorkbook();
        }
    }
}
